<template>
  <div>
    <div class="common-form">其它</div>
    <el-form-item label="限购数量" prop="limit_num"><el-input disabled type="number" v-model="form.product_price" class="max-w460"></el-input></el-form-item>
    <el-form-item label="限购数量" prop="limit_num"><el-input disabled type="number" v-model="form.limit_num" class="max-w460"></el-input></el-form-item>
    <!--销售区域-->
    <el-form-item label="销售区域">
      <el-cascader
        :options="options"
        :props="props"
        v-model="form.productArea"
        clearable></el-cascader>
    </el-form-item> 
  </div>
</template>

<script>
import SettingApi from '@/api/setting.js';
export default {
  inject: ['form'],
  data() {
      return {
        props: { multiple: true,label:'text' },
        options: []
      };
    },
  created() {
      this.getData();
  },
  methods:{
    changeValue (e) {
      this.$forceUpdate()
    },
    getData() {
      let self = this;
      SettingApi.getTreeRegion({level:self.form.district_value}, true)
        .then(res => {
          self.options = res.data.data;
        })
        .catch(error => {
        });
    },
  }
};
</script>

<style></style>
